# Maintainer: prspkt <prspkt@protonmail.com>
pkgname=py3-werkzeug
_pkgname=Werkzeug
pkgver=1.0.1
pkgrel=0
pkgdesc="The WSGI swiss-army knife"
url="http://werkzeug.pocoo.org/"
arch="noarch"
license="MIT"
depends="python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-requests"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"

replaces="py-werkzeug" # Backwards compatibility
provides="py-werkzeug=$pkgver-r$pkgrel" # Backwards compatibility

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

check() {
	fail="tests/test_debug.py"  # needs testing/py3-pytest-timeout
	PYTHONPATH=$PWD/build/lib pytest --ignore="$fail"
}

sha512sums="ba76ee6f39cf8f6b2c8988e6119be78cc6c868ea78bd2014837b4e9f59e8b790fb3a7b5a45b392cabdc61f32b8a6902cf5f43d7e20b1f4571e0bef102a3e88fa  Werkzeug-1.0.1.tar.gz"
